package com.chenglu.android.restaurant.mvp.model;





import com.chenglu.android.bean.SmsCodeBean;
import com.chenglu.android.cart.bean.CartBean;
import com.chenglu.android.common.net.RetrofitClientCL;
import com.chenglu.android.goodsinfo.bean.GoodsCommentBean;
import com.chenglu.android.goodsinfo.bean.GoodsInfoBean;
import com.chenglu.android.goodsinfo.bean.ShopsinfoBean;
import com.chenglu.android.index.bean.IndexRecomBean;
import com.chenglu.android.mine.bean.CommonDataBean;
import com.chenglu.android.restaurant.bean.CurrentShopsInfoBean;
import com.chenglu.android.restaurant.bean.GoodscategorylisBean;
import com.chenglu.android.restaurant.bean.ReviewTypeCountBean;
import com.chenglu.android.restaurant.bean.ShopReviewPageBean;
import com.chenglu.android.restaurant.mvp.contract.RestaurantShopContract;

import java.util.Map;

import io.reactivex.rxjava3.core.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Query;

/**
 * @author: lyj
 * @Created by Copyright 2023/7/27 Guangzhou Hongma Technology Co., Ltd. All rights reserved.
 *
 */
public class RestaurantShopoModel implements RestaurantShopContract.RestaurantShopoModel {




    @Override
    public Observable<CurrentShopsInfoBean> getCurrentShopsInfo(String tenantId) {
        return RetrofitClientCL.getInstance().getApi().getCurrentShopsInfo(tenantId);
    }


    @Override
    public Observable<GoodscategorylisBean> getGoodscategoryList( String tenantId) {
        return RetrofitClientCL.getInstance().getApi().getGoodscategoryList( tenantId);
    }

    @Override
    public Observable<ReviewTypeCountBean> getReviewTypeCount(String tenantId) {
        return RetrofitClientCL.getInstance().getApi().getReviewTypeCount( tenantId);
    }

    @Override
    public Observable<ShopReviewPageBean> getShopReviewPage(String tenantId,  int current, int size, int isBad,int isPic) {
        return RetrofitClientCL.getInstance().getApi().getShopReviewPage( tenantId,current,size,isBad,isPic);
    }

    @Override
    public Observable<CommonDataBean> getAddCartShop(String token, RequestBody requestBody) {
        return RetrofitClientCL.getInstance().getApi().getAddCartShop(token, requestBody);
    }

    @Override
    public Observable<CartBean> getShopsCartList(String token, String tenantId) {
        return RetrofitClientCL.getInstance().getApi().getShopsCartList(token,tenantId);
    }

    @Override
    public Observable<CommonDataBean> getShopCouponreceive(String token, String id) {
        return RetrofitClientCL.getInstance().getApi().getShopCouponreceive(token, id);
    }
}
